package org.nfyszny.zzzs.modules.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.nfyszny.zzzs.modules.entity.ZzzsProductRecording;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 产品备案
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface ZzzsProductRecordingMapper extends BaseMapper<ZzzsProductRecording> {
    @Update("update zzzs_product_recording set is_logout=#{record.isLogout}" +
            "where id=#{record.id}")
    int updateIsDeleteById(@Param("record") ZzzsProductRecording record);

    @Select("select * from zzzs_product_recording where id =#{id}")
    ZzzsProductRecording getHaveInfoById(String id);
}
